package com.huitone.gddw.dao.entity;

import java.util.Date;

import org.springframework.stereotype.Component;
/**
 * Tomcat监控的数据实体
 * @author Administrator
 *
 */
@Component
public class TomcatItem {
	
	private String tName;
	
	private String tIp;
	
	private Integer tPort;
	
	private double tVersions;
	
	private double jvmVersions;
	
	private String os;
	
	private Integer alarmAmount;
	
	private Date lastCollectTime;
	
	private int mem;
	private int availableMem;
	private int useMem;
	private int maxThreads;
	private int threads;
	private int reqs;
	private int reqsuc;
	private int reqfail;
	private int reqmaxtime;
	

	public int getMem() {
		return mem;
	}

	public void setMem(int mem) {
		this.mem = mem;
	}

	public int getAvailableMem() {
		return availableMem;
	}

	public void setAvailableMem(int availableMem) {
		this.availableMem = availableMem;
	}

	public int getUseMem() {
		return useMem;
	}

	public void setUseMem(int useMem) {
		this.useMem = useMem;
	}

	public int getMaxThreads() {
		return maxThreads;
	}

	public void setMaxThreads(int maxThreads) {
		this.maxThreads = maxThreads;
	}

	public int getThreads() {
		return threads;
	}

	public void setThreads(int threads) {
		this.threads = threads;
	}

	public int getReqs() {
		return reqs;
	}

	public void setReqs(int reqs) {
		this.reqs = reqs;
	}

	public int getReqsuc() {
		return reqsuc;
	}

	public void setReqsuc(int reqsuc) {
		this.reqsuc = reqsuc;
	}

	public int getReqfail() {
		return reqfail;
	}

	public void setReqfail(int reqfail) {
		this.reqfail = reqfail;
	}

	public int getReqmaxtime() {
		return reqmaxtime;
	}

	public void setReqmaxtime(int reqmaxtime) {
		this.reqmaxtime = reqmaxtime;
	}

	public TomcatItem() {
		super();
	}
	
	public String gettName() {
		return tName;
	}

	public void settName(String tName) {
		this.tName = tName;
	}

	public String gettIp() {
		return tIp;
	}

	public void settIp(String tIp) {
		this.tIp = tIp;
	}

	public Integer gettPort() {
		return tPort;
	}

	public void settPort(Integer tPort) {
		this.tPort = tPort;
	}

	public double gettVersions() {
		return tVersions;
	}

	public void settVersions(double tVersions) {
		this.tVersions = tVersions;
	}

	public double getJvmVersions() {
		return jvmVersions;
	}

	public void setJvmVersions(double jvmVersions) {
		this.jvmVersions = jvmVersions;
	}

	
	public Date getLastCollectTime() {
		return lastCollectTime;
	}

	public void setLastCollectTime(Date lastCollectTime) {
		this.lastCollectTime = lastCollectTime;
	}

	public String getOs() {
		return os;
	}
	
	public void setOs(String os) {
		this.os = os;
	}
	
	public Integer getAlarmAmount() {
		return alarmAmount;
	}

	public void setAlarmAmount(Integer alarmAmount) {
		this.alarmAmount = alarmAmount;
	}

	@Override
	public String toString() {
		return "TomcatItem [tName=" + tName + ", tIp=" + tIp + ", tPort=" + tPort + ", tVersions=" + tVersions
				+ ", jvmVersions=" + jvmVersions + ", os=" + os + ", alarmAmount=" + alarmAmount + ", lastCollectTime="
				+ lastCollectTime + "]";
	}

	
	
	
}
